Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for host address in echo server and MQTT broker #113

Merged

Conversation

tony-josi-aws
Copy link
Member

@tony-josi-aws tony-josi-aws commented Dec 5, 2024

Issue #, if available:
Failure of +TCP/MQTT demos on the CI when the latest version of +TCP is used.

Description of changes:
This PR allows to optionally use the specified IP address as the host address while creating echo server and MQTT broker.
This change is required to make the latest version of +TCP simulated-based demos work on the CI.

When +TCP simulated demos are run, they don't use the existing endpoint of the host system (Linux/Windows), instead create its own network endpoint. The fixes for loopback-related issues in the latest version of +TCP make it impossible to communicate with loopback addresses that are outside of the demo (in this case, the echo server/MQTT broker runs on the host system's endpoint where simulated demos are run).

The changes are tested here:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tony-josi-aws tony-josi-aws changed the title Add option for host address Add option for host address in echo server and MQTT broker Dec 5, 2024
amazonKamath
amazonKamath previously approved these changes Dec 8, 2024
@tony-josi-aws tony-josi-aws merged commit 3d7325e into FreeRTOS:main Dec 17, 2024
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants